package tx.bj12320.process;

import java.util.ArrayList;
import java.util.List;

import org.activiti.engine.IdentityService;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.activiti.engine.delegate.DelegateExecution;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import tx.bj12320.model.TszbProcessInfo;
import tx.bj12320.service.TszbProcessInfoManager;
@Service
@Transactional
public class LdapService {
	@Autowired
	private IdentityService identityService;
	public void setIdentityService(IdentityService identityService) {
		this.identityService = identityService;
	}

	@Autowired
	private RuntimeService runtimeService;
	@Autowired
	private TaskService taskService;


	public void setRuntimeService(RuntimeService runtimeService) {
		this.runtimeService = runtimeService;
	}

	public void setTaskService(TaskService taskService) {
		this.taskService = taskService;
	}
	@Autowired
	private TszbProcessInfoManager tszbProcessInfoManager;
	public void setTszbProcessInfoManager(TszbProcessInfoManager manager) {
		this.tszbProcessInfoManager = manager;
	}

	public List<String> candidateUsers(DelegateExecution execution){
//		TszbProcessInfo tpif=tszbProcessInfoManager.getById(Long.valueOf(execution.getBusinessKey()));
//		Long oiid=tpif.getOrgInfoId();
//		identityService.createUserQuery().memberOfGroup(execution.get+"_role")
		List<String> l=new ArrayList<String>();
//		l.add("banzhang");
		return l;
	}
}
